package cn.sunan.org.service;

import cn.sunan.basic.uitl.PageList;
import cn.sunan.org.domain.Department;
import cn.sunan.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    //查询
    List<Department> selectAll();
    //单个查询
    Department selctById(Long id);
    //新增
    void save(Department department);
    //修改
    void  update(Department department);
    //删除
    void  delete(Long id);

    //分页+条数
    PageList<Department> queryByPage(DepartmentQuery query);


}
